import {get, post } from "./httpService";

/**
 * 获取微信SDK信息
 * @param {string} code 微信授权返回的code
 */
export const login = ({ code }) =>
    post("/api/v1/media/login", {
        code
    });

/**
 * 获取媒体基本信息
 */
export const getMediaBaseInfo = (id) =>
    get("/api/v1/media/getMediaBaseInfo", {
        id
    });